package com.nie.orderfood.repository;

import com.nie.orderfood.entity.ProductInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ProductInfoRepository extends JpaRepository<ProductInfo,Integer> {

    List<ProductInfo> findAllByProductStatus(Integer code);

    ProductInfo findByProductId(String id);
}
